﻿<%set rs=server.createobject("adodb.recordset")
set rs2=server.createobject("adodb.recordset")

'查询最热漫画最新章节
sql="SELECT top(1) a.mhmc,b.zjmc FROM comics a join zj b on a.id=b.cid order by a.hits desc,b.id desc"       
rs.Open sql,conn,1,1       
if rs.eof then 
description=""
else
description=rs("mhmc") & rs("zjmc") & "已火速更新"
end if
rs.close

    '查询热门漫画
j=0    
hotComic="热门漫画："    
sql="SELECT top(11) id,mhmc FROM comics where id in (4681,4682,1128,7649,7382,7634,7620,7675) order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>11 then exit do
    if j=1 then
    hotComic = hotComic & "<a href=""/comic/"&rs("id")&"/"" target=""_blank"" title="&rs("mhmc")&"><strong>"&rs("mhmc")&"</strong></a> "
    else
    hotComic = hotComic & "<a href=""/comic/"&rs("id")&"/"" target=""_blank"" title="&rs("mhmc")&">"&rs("mhmc")&"</a> "
    end if
		rs.movenext
		loop
rs.close

top_nav=ReadFromTextFile("temp/common/top-nav.htm","utf-8")
top_nav=replace(top_nav,"[WEB_URL]",web_url)
top_nav=replace(top_nav,"[WEB_NAME]",web_name)
top_main=ReadFromTextFile("temp/common/top-main.htm","utf-8")
top_main=replace(top_main,"[WEB_URL]",web_url)
top_main=replace(top_main,"[WEB_NAME]",web_name)
top_main=replace(top_main,"<script type=""text/javascript"">hotComic();</script>",hotComic)
foot=ReadFromTextFile("temp/common/foot.htm","utf-8")
foot=replace(foot,"[WEB_URL]",web_url)
foot=replace(foot,"[WEB_NAME]",web_name)
show_top_ad=ReadFromTextFile("../AD/top_ad.htm","utf-8")
show_index_ad_1=ReadFromTextFile("../AD/index_ad_1.htm","utf-8")
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>高清漫画 火影忍者NARUTO 在线漫画 <%=web_name%></title>
    <meta name="Keywords" content="漫画、在线漫画、火影漫画、NARUTO漫画、斗罗大陆漫画、偷星九月天漫画、杀戮都市漫画、暗夜协奏曲漫画" />
    <meta name="Description" content="<%=description%>，<%=web_name%>在线漫画网始终努力为漫画迷提供及时的漫画更新、高清晰的漫画资源和优质的观看体验。在线漫画,火影忍者NARUTO,海贼王ONEPiece,死神Bleach,GANTZ杀戮都市,斗罗大陆,偷星九月天,暗夜协奏曲,高清漫画在线看" />
    <link href="/css/main.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Scripts/Common.js"></script>
    <style type="text/css">
        .tabList li{width:184px;}
        .tabList li.end{width:184px;}
    </style>
</head>
<body>
    <%=top_nav %>
    <%=top_main %>
	<div class="blank4">
	</div>
	<div style="width:978px;margin:0 auto; border:1px solid #999;text-align:center;">
        <%=show_top_ad %>
	</div>
	<div class="blank4">
	</div>
    <div class="main">
        <div class="main_left_out">
            <div class="left_top">
                <div class="tabList" id="tabList">
                    <ul>
                        <li class="on" onmouseover="changeTab(4,0)"><strong>热门连载漫画</strong> </li>
                        <li onmouseover="changeTab(4,1)"><strong>经典完结漫画</strong></li>
                        <li onmouseover="changeTab(4,2)"><strong>最新上架漫画</strong> </li>
                        <li class="end" onmouseover="changeTab(4,3)"><strong id="hk">最新推荐漫画<em></em></strong></li></ul>
                </div>
                <div class="blank8">
                </div>
                <div class="comicList" id="comicList">
                    <ul style="display: block;">
                        <%       
j=0        
sql="SELECT * FROM comics where zt=0 order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do 
sql2="SELECT * FROM zj where cid="&rs("id")&" order by id desc"       
rs2.Open sql2,conn,1,1
if rs2.eof then
zjmc=""
zjid=""
else
zjid=rs2("id")
zjmc=rs2("zjmc")
end if
rs2.close
                        %>
                        <li><a href="comic/<%=rs("ID")%>" target="_blank" title="<%=rs("mhmc")%>">
                            <img src="cpic/<%=rs("mhfm")%>" alt="<%=rs("mhmc")%>" /></a><a href="comic/<%=rs("ID")%>" target="_blank"
                                title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a>[<a href="comic/<%=rs("ID")%>/<%=zjid%>"
                                    target="_blank" title="<%=zjmc%>" class="red"><%=zjmc%></a>]</li>
                        <%
		rs.movenext
		loop

rs.close
                        %></ul>
                    <ul>
                        <%       
j=0        
sql="SELECT * FROM comics where zt=1 order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do 
sql2="SELECT * FROM zj where cid="&rs("id")&" order by id desc"       
rs2.Open sql2,conn,1,1
if rs2.eof then
zjmc=""
zjid=""
else
zjid=rs2("id")
zjmc=rs2("zjmc")
end if
rs2.close
                        %><li><a href="comic/<%=rs("ID")%>" target="_blank" title="<%=rs("mhmc")%>">
                            <img src="cpic/<%=rs("mhfm")%>" alt="<%=rs("mhmc")%>" /></a> <a href="comic/<%=rs("ID")%>" target="_blank"
                                title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a>[<a href="comic/<%=rs("ID")%>/<%=zjid%>" target="_blank" title="<%=zjmc%>"
                                    <%if rs("zt")=true then%>class="green">完结<%else%>class="red"><%=zjmc%><%end if%></a>]</li><%
		rs.movenext
		loop

rs.close
                                    %>
                    </ul>
                    <ul>
                        <%       
j=0        
sql="SELECT * FROM comics order by id desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do 
sql2="SELECT * FROM zj where cid="&rs("id")&" order by id desc"       
rs2.Open sql2,conn,1,1
if rs2.eof then
zjmc=""
zjid=""
else
zjid=rs2("id")
zjmc=rs2("zjmc")
end if
rs2.close
                        %>
                        <li><a href="comic/<%=rs("ID")%>" target="_blank" title="<%=rs("mhmc")%>">
                            <img src="cpic/<%=rs("mhfm")%>" alt="<%=rs("mhmc")%>" /></a><a href="comic/<%=rs("ID")%>" target="_blank"
                                title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a>[<a href="comic/<%=rs("ID")%>/<%=zjid%>"
                                    target="_blank" title="<%=zjmc%>" <%if rs("zt")=true then%>class="green">完结<%else%>class="red"><%=zjmc%><%end if%></a>]</li>
                        <%
		rs.movenext
		loop

rs.close
                        %>
                    </ul>
                    <ul>
                        <%       
j=0        
sql="SELECT * FROM comics where tj=1 order by id desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do 
sql2="SELECT * FROM zj where cid="&rs("id")&" order by id desc"       
rs2.Open sql2,conn,1,1
if rs2.eof then
zjmc=""
zjid=""
else
zjid=rs2("id")
zjmc=rs2("zjmc")
end if
rs2.close
                        %>
                        <li><a href="comic/<%=rs("ID")%>" target="_blank" title="<%=rs("mhmc")%>">
                            <img src="cpic/<%=rs("mhfm")%>" alt="<%=rs("mhmc")%>"/></a><a href="comic/<%=rs("ID")%>" target="_blank"
                                title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a>[<a href="comic/<%=rs("ID")%>/<%=zjid%>"
                                    target="_blank" title="<%=zjmc%>" <%if rs("zt")=true then%>class="green">完结<%else%>class="red"><%=zjmc%><%end if%></a>]</li>
                        <%
		rs.movenext
		loop

rs.close
                        %>
                    </ul>
                </div>
            </div>
            <div class="blank4">
            </div>
            <div style="width: 744px;border:1px solid #999;text-align:center;">
				<%=show_index_ad_1 %>
            </div>
            <div class="blank4">
	        </div>
            <div class="main_left">
                <div style="width: 98%; text-align: left;">
                    <div class="outer">
                        <h2 class="main_bar">
                            <strong>漫画点击总排行</strong></h2>
                        <div style="padding: 3px;">
                            <div class="topHits">
                                <ul>
                                    <%       
j=0        
sql="SELECT * FROM comics order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>20 then exit do %>
                                    <li><span class="t<%=j%>">
                                        <%=j%>.</span><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a></li>
                                    <%
		rs.movenext
		loop

rs.close
                                    %>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="height_4px">
                    </div>
                    <div class="height_4px">
                    </div>
                    <div class="outer">
                        <div class="main_bar">
                            <strong>漫画点击月排行</strong></div>
                        <div style="padding: 3px;">
                            <div class="topHits">
                                <ul>
                                    <%       
j=0        
sql="SELECT * FROM comics order by hits_m desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>20 then exit do %>
                                    <li><span class="t<%=j%>">
                                        <%=j%>.</span><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a></li><%
		rs.movenext
		loop

rs.close
                                        %>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="height_4px">
                    </div>
                    <div class="height_4px">
                    </div>
                    <div class="outer">
                        <div class="main_bar">
                            <strong>漫画点击周排行</strong></div>
                        <div style="padding: 3px;">
                            <div class="topHits" style="padding-bottom: 15px;">
                                <ul>
                                    <%       
j=0        
sql="SELECT * FROM comics order by hits_w desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>20 then exit do %>
                                    <li><span class="t<%=j%>">
                                        <%=j%>.</span><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>"><%=rs("mhmc")%></a></li><%
		rs.movenext
		loop

rs.close
                                        %>
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="main_center">
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#A">更多</a></span><strong>字母 A - D</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%       
     
zmArr = Array("A","B","C","D")
for i=0 to  ubound(zmArr)
j=0
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %>
                        </ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#E">更多</a></span><strong>字母 E - H</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%       
zmArr = Array("E","F","G","H")
for i=0 to  ubound(zmArr)
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %>
                        </ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#I">更多</a></span><strong>字母 I - L</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%   
zmArr = Array("I","J","K","L")
for i=0 to  ubound(zmArr)    
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %>
                        </ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#M">更多</a></span><strong>字母 M - P</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%      
zmArr = Array("M","N","O","P")
for i=0 to  ubound(zmArr)     
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %>
                        </ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#Q">更多</a></span><strong>字母 Q - V</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%       
zmArr = Array("Q","R","S","T")
for i=0 to  ubound(zmArr)     
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next

zmArr = Array("U","V")
for i=0 to  ubound(zmArr)     
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>5 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %>
                        </ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#W">更多</a></span><strong>字母 W - Z</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%     
zmArr = Array("W","X","Y","Z")
for i=0 to  ubound(zmArr)       
j=0        
sql="SELECT * FROM comics where zm='"&zmArr(i)&"' order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>10 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop
rs.close
next
                            %></ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <div class="chr_bar">
                        <span><a href="/list/all.htm#0-9">更多</a></span><strong>字母 0 - 9</strong></div>
                    <div class="chrComicList">
                        <div class="height_4px">
                        </div>
                        <ul>
                            <%       
j=0        
sql="SELECT * FROM comics where zm in ('0','1','2','3','4','5','6','7','8','9','0-9') order by hits desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>40 then exit do %>
                            <li><a href="/comic/<%=rs("id")%>/" target="_blank" title="<%=rs("mhmc")%>">
                                <%=rs("mhmc")%></a></li>
                            <%
		rs.movenext
		loop

rs.close
                            %></ul>
                        <div class="height_4px">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="main_right">
            <div style="width: 98%; float: right;">
                <div class="outer">
                    <h2 class="main_bar">
                        新闻公告 - 敬请留意</h2>
                    <div class="Advices">
                        <ul>
                            <%       
j=0        
sql="SELECT * FROM news order by id desc"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>6 then exit do %><li><a href="<%=rs("newinfo")%>" target="_blank" title="<%=rs("newtitle")%>">
    <%=left(rs("newtitle"),18)%></a></li><%
		rs.movenext
		loop

rs.close
    %></ul>
                        <div class="height_2px">
                        </div>
                    </div>
                </div>
                <div class="height_4px">
                </div>
                <div class="height_4px">
                </div>
                <div class="outer">
                    <h2 class="bar">
                        <span><a href="/list/update.htm" class="red">&gt;&gt;更多</a> </span>
                        <strong>漫画最新更新</strong></h2>
                    <div class="newUpdate" style="padding-bottom: 20px;">
                        <ul>
                            <%       
j=0        
sql="SELECT * FROM zj WHERE id in (select max(id) from zj group by cid) ORDER BY id desc"       
rs.Open sql,conn,1,1        
do while not rs.eof       
j=j+1

if j>68 then exit do %><%set rs2=server.createobject("adodb.recordset")
sql2="select * from comics where id='"&rs("cid")&"'"
rs2.open sql2,conn,1,1
if rs2.eof then
mhmc="不存在"
else
mhmc=rs2("mhmc")
end if
if rs2("zt") then
zjmc="完结"
zjCls="green"
else
zjmc=rs("zjmc")
zjCls="red"
end if
dateCls=""
if DateDiff("d",rs("time"),now())<=2 then
dateCls="class=red"
end if
%>
                            <li class="t<%=j%>"><span <%=dateCls%>>
                                <%=year(rs("time"))%>-<%=month(rs("time"))%>-<%=day(rs("time"))%></span><a
                                    href="/comic/<%=rs("cid")%>/" target="_blank" title="<%=mhmc%>"><%=left(mhmc,7)%></a><em>[<a href="/comic/<%=rs("cid")%>/<%=rs("id")%>" target="_blank" class="<%=zjCls%>" title="<%=zjmc%>"><%=left(zjmc,5)%></a>]</em></li><%
		rs.movenext
		loop

rs.close
                                %>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="height_4px">
    </div>
    <div class="height_4px">
    </div>
    <div class="main">
        <div class="outer">
            <h2 class="main_bar">
                <span style="float: right; font-size: 12px; font-weight: normal; color: #FF0000;">诚征链接,流量合作(QQ:<%=QQ_z%>)</span>友情链接</h2>
            <div class="flinks">
                <div class="height_4px">
                </div>
                <ul>
                    <%       
j=0        
sql="SELECT * FROM link order by id"       
rs.Open sql,conn,1,1       
do while not rs.eof       
j=j+1
if j>50 then exit do %><li><a href="<%=rs("siteurl")%>" target="_blank" title="<%=rs("siteinfo")%>">
    <%=left(rs("sitename"),13)%></a></li><%
		rs.movenext
		loop

rs.close
    %>
                </ul>
                <div class="height_4px">
                </div>
            </div>
        </div>
    </div>
    <div class="height_4px">
    </div>
    <div class="height_4px">
    </div>
    <%=foot %>
</body>
</html>
